package org.idea.qiyu.framework.canal.annotation;

import java.lang.annotation.*;

/**
 * 订阅canal消息的注解
 *
 * @Author linhao
 * @Date created in 4:10 下午 2021/6/19
 */
@Target(ElementType.TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface CanalListener {

    /**
     * 表名
     *
     * @return
     */
    String table() default "";

    /**
     * 对应canal的instance名字
     *
     * @return
     */
    String destination() default "";

}
